<html>
<head>
<link href="../../../Objects/sofa_white.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="contenu">
		
		<center><h3>Mesh Loading and Rendering 1 (1/7)</h3>
		  <br><br>
		  <img src="0_Visual.png" name="Visu_start" align="middle" width=300 />
		</center>

		
		<br><div id="orangeText">Description</div>
        
		<p>The objective of this first tutorial about visualization is to load an obj file and render it in the viewer.<br></p>
        
		<p><div id="orangeText">Key points</div></p>
		
        <p><b>OglModel</b> is the main component for rendering file. This is where all geometrical information (vertices, faces ...) are given to OpenGL, which render it afterwards. Vertex Buffer Object is used (if supported) to enhance speed.</p>

		<p>Just put an <b>OglModel</b> in the scene and fill the field <strong>filename</strong> with the path to your OBJ file.</p>
        
        <div id="tutorialAction"><p>Create a new scene. Clear it of the default components by selecting <strong>File > Clear</strong>.</p>
        
        <p>Add an <strong>OglModel</strong> component to the root node. Change the <strong>Path to the model</strong> (found in the <strong>Property 2/3</strong> tab) to <strong>/Sofa/share/mesh/dragon.obj</strong></p>
        
        <p>Run in SOFA and Animate.</p></div>
        
        <p>Nothing happens, but you can see the object.</p>       
        
        
        <br><center><h3><a href="1_Visual.scn">Next</a></center></h3>
	</div>
</body>
</html>
